import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { PlanComponent } from './plan/plan.component';
import { PaymentComponent } from './payment/payment.component';
import { BillComponent } from './bill/bill.component';

const routes: Routes = [

  { path: '', redirectTo: 'plan', pathMatch: 'full' },
  { path: 'plan',
    canActivate: [],
    canActivateChild: [],
    component: PlanComponent},
  { path: 'payment',
    canActivate: [],
    canActivateChild: [],
    component: PaymentComponent},
    { path: 'bill',
    canActivate: [],
    canActivateChild: [],
    component: BillComponent},
];

@NgModule({
  imports: [
    RouterModule.forChild(routes),
  ],
  exports: [RouterModule]
})
export class PaymentRoutingModule { }
